<%--
  Created by IntelliJ IDEA.
  User: Starry:123xsz
  Date: 2022/4/12
  Time: 14:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Register</title>
    <link rel="stylesheet" type="text/css" href="css/login.css"/>
</head>
<body>
<div id="login">
    <h1>Register</h1>
    <form action="register" method="post">
        <label>
            <input type="text" placeholder="Account" name="account"
                   required oninvalid="setCustomValidity('Please enter your account')"
                   oninput="setCustomValidity('')"
            />
        </label> <br>
        <label>
            <input type="password" placeholder="Password" name="password"
                   required oninvalid="setCustomValidity('Please enter your password')"
                   oninput="setCustomValidity('')"
            />
        </label> <br>
        <label>
            <input type="text" placeholder="Nickname" name="nickname"
                   required oninvalid="setCustomValidity('Please enter your nickname')"
                   oninput="setCustomValidity('')"
            />
        </label>
        <label> <br>
            <input type="text" placeholder="*Email" name="email"/>
        </label> <br>
        <button class="but" type="submit">注册</button>
    </form>
    <%--    <script>--%>
    <%--        alert("${message.description}")--%>
    <%--    </script>--%>
</div>
</body>
</html>
